<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use common\models\MktPost;
use common\models\MktUser;
?>
<!--
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="keywords" content="首页关键字" />
  <meta name="description" content="首页描述" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Cache-Control" content="no-cache" />
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />
  <meta name="apple-mobile-web-app-capable" content="yes"/>
  
  <link rel="stylesheet" href="resources/css/weui/weui.min.css">
  <link rel="stylesheet" href="resources/css/main.min.css">
  <link rel="stylesheet" href="resources/css/man.min.css">
  
  <script src="resources/js/jquery-1.10.min.js"></script>
  <script src="resources/js/jquery.touchSwipe.min.js"></script>
  <script src="resources/js/frmwebm.min.js"></script>
  <title>张倩的工作圈</title>
  <style>
  .weui_media_box.weui_media_appmsg .weui_media_hd {
	margin-right:10px;width: 70px;color: #576b95;
  }
  .weui_panel:before {
    border-top: 0px;
  }
  .weui_media_hd{
    text-align: top;
    margin-top: -40px;
	font-size: 24px;
  }
  .weui_media_info_meta{
	font-size: 15px;
  }
  .weui_media_appmsg .weui_media_box:before{
    border-top: 0px;
  }
  .weui_media_box{
	padding-bottom: 10px;
  }
  .weui_media_box:last-child:after {
    border-bottom: 1px solid #e5e5e5;transform-origin: 0 0 0;
  }
  .weui_media_box.weui_media_text .weui_media_info{
	margin-top: 10px;
	color: #999999;
	line-height: 15px;
  }
  .weui_panel:after {
    border-bottom: 0px;
  }
  .weui_media_hd .month{
	font-size:12px;
  }
  .weui_media_box.weui_media_text .weui_media_title {
    margin-bottom: 0px;
	font-size: 15px;
  }
  .weui_panel {
    margin-top: 0px;
  }
  .weui_media_box .weui_media_text .weui_media_info{
	padding: 0px !important;
  }
  .weui_media_box.weui_media_text .weui_media_info_meta{
	padding: 0px  !important;
  }
  .weui_media_info .weui_media_info_meta{
	text-align: center;
    width: 30%;
  }
  .weui_media_appmsg .weui_media_box {
    padding: 10px 0px 10px 5px !important;
  }
  .weui_media_box {
    padding: 10px 5px 5px 5px !important;
  }
  .weui_media_info .weui_media_info_meta:first-child{
	text-align: left;
  }
  </style>
</head>
<body style="background: #ffffff none repeat scroll 0 0;">
-->
<?php $this->params['bodyStyle'] = 'background: #ffffff none repeat scroll 0 0;'; ?>
<?php $this->title = $user->theName . "的工作圈"; ?>
  <style>
  .weui_media_box.weui_media_appmsg .weui_media_hd {
	margin-right:10px;width: 70px;color: #576b95;
  }
  .weui_panel:before {
    border-top: 0px;
  }
  .weui_media_hd{
    text-align: top;
    margin-top: -40px;
	font-size: 24px;
  }
  .weui_media_info_meta{
	font-size: 15px;
  }
  .weui_media_appmsg .weui_media_box:before{
    border-top: 0px;
  }
  .weui_media_box{
	padding-bottom: 10px;
  }
  .weui_media_box:last-child:after {
    border-bottom: 1px solid #e5e5e5;transform-origin: 0 0 0;
  }
  .weui_media_box.weui_media_text .weui_media_info{
	margin-top: 10px;
	color: #999999;
	line-height: 15px;
  }
  .weui_panel:after {
    border-bottom: 0px;
  }
  .weui_media_hd .month{
	font-size:12px;
  }
  .weui_media_box.weui_media_text .weui_media_title {
    margin-bottom: 0px;
	font-size: 15px;
  }
  .weui_panel {
    margin-top: 0px;
  }
  .weui_media_box .weui_media_text .weui_media_info{
	padding: 0px !important;
  }
  .weui_media_box.weui_media_text .weui_media_info_meta{
	padding: 0px  !important;
  }
  .weui_media_info .weui_media_info_meta{
	text-align: center;
    width: 30%;
  }
  .weui_media_appmsg .weui_media_box {
    padding: 10px 0px 10px 5px !important;
  }
  .weui_media_box {
    padding: 10px 5px 5px 5px !important;
  }
  .weui_media_info .weui_media_info_meta:first-child{
	text-align: left;
  }
  </style>

	<div class="pepole_top2 pepole_<?php echo $user->isWoman() ? 'woman' : 'man'; ?>2">
		<div class="avatar_bg">
			<img src="resources/images/market/woman/u185.png">
		</div>
		<div class="avatar">
        <!--
			<img src="resources/images/market/woman/u187.jpg">
        -->
          <img src="<?= $user->headimgurl ?>">

		</div>
		
		<div class="baseInfo_div">
			<div class="name">
				<p><?= $user->theName ?></p>
			</div>
			<div style="font-size: 15px;" class="mark">
				<p><span><?= $user->theCompany ?></span></p>
			</div>
		</div>
	</div>
	
	<div class="weui_panel weui_panel_access">
		<div class="weui_panel_bd">

        
        <?php foreach($posts as $post): ?>
			<a onclick="gotoModule(${item.id})" class="weui_media_box weui_media_appmsg">
				<div class="weui_media_hd" style="width: 80px;margin-right: 0.1em;font-size:26px;">
                <span><?php echo date("j",strtotime($post->create_time)); ?></span>
                <span class="month"><?php echo date("n",strtotime($post->create_time)); ?>月
                <?php //echo \common\wosotech\Util::timeago($post->create_time) ?></span></div>
				<div class="weui_media_box weui_media_text" style="background: #F7F7F7 none repeat scroll 0 0;width:100%;">
					<div class="weui_media_title"><?= $post->title ?></div>
					<ul class="weui_media_info">
						<li class="weui_media_info_meta"><?= $post->area->getPaths('-'); ?></li>

                        <?php if ($post->post_type == MktPost::POST_TYPE_JOB): ?>
                            <li class="weui_media_info_meta weui_media_info_meta_extra"><?php echo MktPost::getPostJobExperienceOption($post->job_experience); ?></li>
                            <li class="weui_media_info_meta weui_media_info_meta_extra"><?php echo MktPost::getPostJobSalaryMinOption($post->job_salary_min) . ' - ' . MktPost::getPostJobSalaryMaxOption($post->job_salary_max); ?></li>
                        <?php elseif ($post->post_type == MktPost::POST_TYPE_COOPERATION): ?>
                            <li class="weui_media_info_meta weui_media_info_meta_extra"><?php echo $post->shortStartTime; ?></li>
                            <li class="weui_media_info_meta weui_media_info_meta_extra"><?php echo MktPost::getPostCooperationRewardOption($post->cooperation_reward); ?><?php //echo $post->shortContent; ?></li>
                        <?php else: ?>
                        <?php endif; ?>

					</ul>
				</div>
			</a>
        <?php endforeach; ?>
			<div class="weui_media_box weui_media_appmsg"></div>
		</div>
	</div>
</div>
<div class="weui_msg"></div>

<!--
</body>
</html>
-->

<?php
/*
<!--
			<a onclick="gotoModule(${item.id})" class="weui_media_box weui_media_appmsg">
				<div class="weui_media_hd" style="width: 80px;margin-right: 0.1em;font-size:26px;"><span>10</span><span class="month">9月</span></div>
				<div class="weui_media_box weui_media_text" style="background: #F7F7F7 none repeat scroll 0 0;width:100%;">
					<div class="weui_media_title">招聘市场经理</div>
					<ul class="weui_media_info">
						<li class="weui_media_info_meta">江汉区</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">5年工作经验</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">5K+</li>
					</ul>
				</div>
			</a>
			<a onclick="gotoModule(${item.id})" class="weui_media_box weui_media_appmsg">
				<div class="weui_media_hd" style="width: 80px;margin-right: 0.1em;font-size:26px;"><span>02</span><span class="month">9月</span></div>
				<div class="weui_media_box weui_media_text" style="background: #F7F7F7 none repeat scroll 0 0;width:100%;">
					<div class="weui_media_title">寻亲子机构会员招募合作</div>
					<ul class="weui_media_info">
						<li class="weui_media_info_meta">江汉区</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">7月29日</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">2K+</li>
					</ul>
				</div>
			</a>
			<a onclick="gotoModule(${item.id})" class="weui_media_box weui_media_appmsg">
				<div class="weui_media_hd" style="width: 80px;margin-right: 0.1em;font-size:26px;"><span>31</span><span class="month">8月</span></div>
				<div class="weui_media_box weui_media_text" style="background: #F7F7F7 none repeat scroll 0 0;width:100%;">
					<div class="weui_media_title">寻江汉区室内场地合作</div>
					<ul class="weui_media_info">
						<li class="weui_media_info_meta">江汉区</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">8月6日</li>
						<li class="weui_media_info_meta weui_media_info_meta_extra">会员共享</li>
					</ul>
				</div>
			</a>
-->			

*/